package com.nlx.notes.module.helper.sms.excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.nlx.notes.module.bean.dto.file.excel.BillRecordDTO;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

public class BillExcelListener extends AnalysisEventListener<BillRecordDTO> {

    @Getter
    private final List<BillRecordDTO> recordList = new ArrayList<>();

    @Override
    public void invoke(BillRecordDTO data, AnalysisContext context) {
        recordList.add(data);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext context) {
        // 可以在这里做额外处理
    }



}
